package cn.kzgg.basic.util;

import lombok.Data;

@Data
public class AjaxResult {

    private Boolean success = true;

    private String message = "操作成功";

    //返回操作的额外参数
    private Object resultObj;



    public AjaxResult setSuccess(Boolean success) {
        this.success = success;
        return this;
    }

    public static AjaxResult show(){
        return new AjaxResult();
    }

    public AjaxResult setMessage(String message) {
        this.message = message;
        return this;
    }

    public AjaxResult setResultObj(Object resultObj){
        this.resultObj=resultObj;
        return this;
    }
}
